import { defineStore } from "pinia";

export const useTabbarStore = defineStore("tabbar", {
  state: () => ({
    active: 0,
    hide: true,
  }),
  actions: {
    changeTabbarActive(number: number) {
      this.active = number;
    },
  },
  persist: true, // 设置持久化
});
